package ${mapperInterface.packageName};

import ${tableClass.fullClassName};
import java.util.List;

/**
 * ${tableClass.remark!}数据库操作Mapper
 *
 * @author wangwenjie
 * @date ${.now?string('yyyy-MM-dd HH:mm:ss')}
 */
public interface ${mapperInterface.fileName} {

    int deleteByPrimaryKey(Long id);

    int insert(${tableClass.shortClassName} entity);

    int insertSelective(${tableClass.shortClassName} entity);

    ${tableClass.shortClassName} selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(${tableClass.shortClassName} entity);

    int updateByPrimaryKey(${tableClass.shortClassName} entity);

    /**
     * 根据实体类查询符合条件的单条记录
     */
    ${tableClass.shortClassName} select${tableClass.shortClassName}ByEntity(${tableClass.shortClassName} entity);

    /**
     * 根据实体类查询符合条件的多条记录
     */
    List<${tableClass.shortClassName}> select${tableClass.shortClassName}ListByEntity(${tableClass.shortClassName} entity);
}
